MRegistrationPg.widgets = {
	svRegistration: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"register","service":"RegistrationService"}, {"onError":"svRegistrationError","onSuccess":"notifyRegistration","onSuccess1":"layerLogin","onSuccess2":"svRegistrationSuccess2"}, {
		input: ["wm.ServiceInput", {"type":"registerInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire3: ["wm.Wire", {"expression":undefined,"source":"passwordEditor1.dataValue","targetProperty":"customer.password"}, {}],
				wire4: ["wm.Wire", {"expression":undefined,"source":"secondaryPhoneEditor1.dataValue","targetProperty":"customer.secondaryPhone"}, {}],
				wire5: ["wm.Wire", {"expression":undefined,"source":"primaryPhoneEditor1.dataValue","targetProperty":"customer.primaryPhone"}, {}],
				wire6: ["wm.Wire", {"expression":undefined,"source":"nameEditor1.dataValue","targetProperty":"customer.name"}, {}],
				wire7: ["wm.Wire", {"expression":undefined,"source":"emailEditor1.dataValue","targetProperty":"customer.email"}, {}],
				wire1: ["wm.Wire", {"expression":undefined,"source":"luProjects.selectedItem.projectId","targetProperty":"activationCode"}, {}],
				wire: ["wm.Wire", {"expression":undefined,"source":"luBlocks.selectedItem.name","targetProperty":"customer.block.blockName"}, {}],
				wire2: ["wm.Wire", {"expression":undefined,"source":"luDoor.selectedItem.dataValue","targetProperty":"customer.door.doorName"}, {}],
				wire8: ["wm.Wire", {"expression":undefined,"source":"[mobileMainPg].vProjectName.dataValue","targetProperty":"customer.project.projectName"}, {}]
			}]
		}]
	}],
	notifyRegistration: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":"\"Registered Successfully.Please login  using the credentials\"","targetProperty":"text"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
				wire3: ["wm.Wire", {"expression":"\"bottom center\"","targetProperty":"dialogPosition"}, {}]
			}]
		}]
	}],
	svLogin: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"retrieveUserDetails","service":"RegistrationService"}, {"onResult":"svLoginResult"}, {
		input: ["wm.ServiceInput", {"type":"retrieveUserDetailsInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":undefined,"source":"usernameInput.dataValue","targetProperty":"email"}, {}],
				wire1: ["wm.Wire", {"expression":undefined,"source":"passwordInput.dataValue","targetProperty":"password"}, {}],
				wire2: ["wm.Wire", {"expression":undefined,"source":"luProjects.selectedItem.projectId","targetProperty":"projectId"}, {}],
				wire3: ["wm.Wire", {"expression":undefined,"source":"[mobileMainPg].vProjectName.dataValue","targetProperty":"projectName"}, {}]
			}]
		}]
	}],
	notifyLogin: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
				wire: ["wm.Wire", {"expression":"\"Logged in Successfully\"","targetProperty":"text"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
				wire3: ["wm.Wire", {"expression":"\"bottom center\"","targetProperty":"dialogPosition"}, {}]
			}]
		}]
	}],
	notifyLoginError: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":"\"User not found\"","targetProperty":"text"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Error\"","targetProperty":"cssClasses"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}]
			}]
		}]
	}],
	ncRequiredFields: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Warning\"","targetProperty":"cssClasses"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
				wire: ["wm.Wire", {"expression":"\"Please enter valid data in required fields.\"","targetProperty":"text"}, {}]
			}]
		}]
	}],
	notifyRegistrationError: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":"\"Error\"","targetProperty":"cssClasses"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Error during registration \"","targetProperty":"text"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}]
			}]
		}]
	}],
	ncValidActivationCode: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire1: ["wm.Wire", {"expression":"4000","targetProperty":"duration"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
				wire: ["wm.Wire", {"expression":"\"Activation Code Found.Please Enter remaining data.\"","targetProperty":"text"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}]
			}]
		}]
	}],
	ncInValidActivationCode: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":"\"Error\"","targetProperty":"cssClasses"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Activation code not found.\"","targetProperty":"text"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}]
			}]
		}]
	}],
	svForgotPassword: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"forgotPassword","service":"RegistrationService"}, {"onSuccess":"ncForgotPassword"}, {
		input: ["wm.ServiceInput", {"type":"forgotPasswordInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":undefined,"source":"usernameInput.dataValue","targetProperty":"email"}, {}]
			}]
		}]
	}],
	ncForgotPassword: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":undefined,"source":"svForgotPassword.dataValue","targetProperty":"text"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}]
			}]
		}]
	}],
	loadingLogin: ["wm.LoadingDialog", {"caption":"Connecting to server. Please wait..Check your internet connection if it is taking time","captionWidth":"200px","serviceVariableToTrack":["svLogin","svRegistration","svBlocks","svDoors","svProjects"]}, {}, {
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
		}]
	}],
	loadingBlocks: ["wm.LoadingDialog", {"caption":"Connecting to server. Please wait..","captionWidth":"200px"}, {}, {
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
		}]
	}],
	ldPassword: ["wm.LoadingDialog", {"caption":"Sending your password ...","captionWidth":"100%","serviceVariableToTrack":["svForgotPassword"]}, {}, {
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
		}]
	}],
	layoutBox1: ["wm.Layout", {"horizontalAlign":"left","styles":{},"verticalAlign":"top"}, {}, {
		headerPanel: ["wm.HeaderContentPanel", {"borderColor":"#888888","desktopHeight":"15%","deviceType":null,"enableTouchHeight":true,"fitToContentHeight":true,"height":"67px","horizontalAlign":"center","layoutKind":"left-to-right","minDesktopHeight":65,"minHeight":65,"minMobileHeight":65,"mobileHeight":"15%","styles":{"backgroundImage":"resources/images/mobile/background_m.jpg"},"verticalAlign":"top","width":"100%"}, {}, {
			pH2mHeader: ["wm.Picture", {"aspect":"v","height":"100%","minDesktopHeight":65,"minHeight":65,"source":"resources/images/mobile/h2m_header.png","styles":{},"width":"100%"}, {}]
		}],
		panel2: ["wm.Panel", {"autoScroll":true,"borderColor":"#fbfbfb","height":"100%","horizontalAlign":"left","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
			layers1: ["wm.Layers", {"margin":"0,0,0,0","styles":{},"transition":"slide"}, {}, {
				layerLogin: ["wm.Layer", {"autoScroll":true,"borderColor":"","caption":"Please Login","horizontalAlign":"left","styles":{},"themeStyleType":"","verticalAlign":"top"}, {}, {
					loginInputPanel: ["wm.HeaderContentPanel", {"_classes":{"domNode":["rounded"]},"autoScroll":true,"deviceType":null,"enableTouchHeight":true,"height":"100%","horizontalAlign":"center","styles":{"color":""},"verticalAlign":"top","width":"100%"}, {"onEnterKeyPress":"loginButton.click"}, {
						panel1: ["wm.Panel", {"desktopHeight":"90px","enableTouchHeight":true,"height":"102px","horizontalAlign":"center","mobileHeight":"102px","padding":"5","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
							usernameInput: ["wm.Text", {"border":"0","caption":"Email Id","captionAlign":"left","captionSize":"1px","dataValue":undefined,"desktopHeight":"35px","displayValue":"","height":"45px","mobileHeight":"45px","placeHolder":"Email ID:","regExp":"^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$","required":true,"styles":{},"width":"95%"}, {}],
							passwordInput: ["wm.Text", {"border":"0","caption":"Password","captionAlign":"left","captionSize":"1px","dataValue":undefined,"desktopHeight":"35px","displayValue":"","height":"45px","maxChars":"50","mobileHeight":"45px","password":true,"placeHolder":"Password:","required":true,"styles":{"fontSize":"16px"},"width":"95%"}, {}]
						}],
						panelLoginErrorMessage: ["wm.Panel", {"desktopHeight":"56px","enableTouchHeight":true,"height":"30px","horizontalAlign":"left","mobileHeight":"30px","showing":false,"styles":{},"verticalAlign":"top","width":"100%"}, {}, {
							loginErrorMsg: ["wm.Label", {"align":"center","caption":" ","height":"100%","padding":"4","singleLine":false,"styles":{"color":"#e21313","fontWeight":"bolder","fontSize":"14px"},"width":"100%"}, {}, {
								format: ["wm.DataFormatter", {}, {}]
							}]
						}],
						loginButtonPanel: ["wm.Panel", {"desktopHeight":"45px","enableTouchHeight":true,"height":"50px","horizontalAlign":"center","layoutKind":"left-to-right","mobileHeight":"50px","padding":"1","styles":{},"width":"100%"}, {}, {
							loginButton: ["wm.Button", {"border":"1","borderColor":"#000000","caption":"Login to My Account &nbsp; &nbsp; ","height":"100%","iconHeight":"25px","iconWidth":"25px","imageIndex":0,"imageList":"app.silkIconList","styles":{},"width":"95%"}, {"onclick":"loginButtonClick"}, {
								binding: ["wm.Binding", {}, {}, {
									wire: ["wm.Wire", {"expression":"${usernameInput.invalid} || ${passwordInput.invalid}","targetProperty":"disabled"}, {}]
								}]
							}]
						}],
						spacer2: ["wm.Spacer", {"height":"7px","width":"57px"}, {}],
						panelRegister: ["wm.Panel", {"desktopHeight":"130px","enableTouchHeight":true,"height":"179px","horizontalAlign":"center","mobileHeight":"179px","padding":"1","styles":{},"width":"100%"}, {}, {
							registerButton: ["wm.Button", {"border":"1","borderColor":"#000000","caption":"Register New Account","desktopHeight":"45px","height":"50px","imageIndex":54,"imageList":"app.silkIconList","mobileHeight":"50px","styles":{},"width":"95%"}, {"onclick":"layerRegistration","onclick1":"registerButtonClick1"}],
							spacer5: ["wm.Spacer", {"height":"10px","styles":{},"width":"57px"}, {}],
							bResetPassword: ["wm.Button", {"border":"1","borderColor":"#000000","caption":"Forgot Password &nbsp; &nbsp; &nbsp; &nbsp; ","desktopHeight":"45px","height":"50px","imageIndex":64,"imageList":"app.silkIconList","mobileHeight":"50px","styles":{},"width":"95%"}, {"onclick":"bResetPasswordClick"}],
							spacer6: ["wm.Spacer", {"height":"15px","styles":{},"width":"57px"}, {}],
							labelCoyRight4: ["wm.Label", {"align":"center","caption":"Copyright @2014 H2M App.com","height":"26px","link":"http://h2mapp.com/products.html","padding":"4","styles":{"fontWeight":"normal","fontSize":"8px"},"width":"100%"}, {}],
							labelCoyRight7: ["wm.Label", {"align":"center","caption":"","display":"labelCoyRight7ReadOnlyNodeFormat","height":"34px","link":undefined,"padding":"4","styles":{"fontWeight":"normal","fontSize":"12px","fontStyle":"normal"},"width":"100%"}, {}]
						}]
					}]
				}],
				layerRegistration: ["wm.Layer", {"autoScroll":true,"borderColor":"","caption":"Registration","horizontalAlign":"center","styles":{},"themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
					panelContent: ["wm.HeaderContentPanel", {"autoScroll":true,"height":"100%","horizontalAlign":"center","margin":"0,0,0,0","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
						formPanel1: ["wm.FormPanel", {"autoScroll":true,"captionSize":"1px","deviceType":null,"editorHeight":"40px","height":"100%","margin":"5,0,0,0","padding":"0","styles":{},"type":"com.servicelivedb.data.Customer"}, {}, {
							panelRegPage1: ["wm.Panel", {"autoScroll":true,"enableTouchHeight":true,"height":"100%","horizontalAlign":"center","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
								luProjects: ["wm.Lookup", {"border":"1","caption":"Project","captionSize":"1px","dataType":"com.servicelivedb.data.Project","dataValue":undefined,"desktopHeight":"30px","displayField":"projectName","displayValue":"","height":"20px","margin":"0,0,0,0","mobileHeight":"20px","padding":"0","placeHolder":"Project","readonly":true,"showing":false,"styles":{},"width":"100%"}, {}, {
									binding: ["wm.Binding", {}, {}, {
										wire: ["wm.Wire", {"expression":undefined,"source":"svProjects","targetProperty":"dataSet"}, {}]
									}]
								}],
								luBlocks: ["wm.Lookup", {"border":"0","caption":"Block List","captionSize":"1px","dataType":"EntryData","dataValue":undefined,"desktopHeight":"35px","displayField":"name","displayValue":"","height":"35px","placeHolder":"Select a Block","styles":{},"width":"95%"}, {"onchange":"luBlocksChange"}, {
									binding: ["wm.Binding", {}, {}, {
										wire: ["wm.Wire", {"expression":undefined,"source":"[mobileMainPg].vProjectBlocks","targetProperty":"dataSet"}, {}]
									}]
								}],
								luDoor: ["wm.Lookup", {"border":"0","caption":"Flat List","captionSize":"1px","dataValue":undefined,"desktopHeight":"35px","displayValue":"","height":"35px","placeHolder":"Select a Door","styles":{},"width":"95%"}, {}],
								emailEditor1: ["wm.Text", {"border":"0","caption":"Email","captionSize":"1px","dataValue":"","desktopHeight":"26px","displayValue":"","emptyValue":"emptyString","height":"35px","margin":"1,0,0,0","maxChars":"50","padding":"1","placeHolder":"Email ID:","regExp":"^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$","required":true,"styles":{"fontSize":"16px"},"width":"95%"}, {}],
								passwordEditor1: ["wm.Text", {"border":"0","caption":"Password","captionSize":"1px","dataValue":"","displayValue":"","emptyValue":"emptyString","enableTouchHeight":false,"height":"35px","margin":"1,0,0,0","maxChars":"50","padding":"1","password":true,"placeHolder":"Password:","required":true,"styles":{},"width":"95%"}, {}],
								nameEditor1: ["wm.Text", {"border":"0","caption":"Name","captionSize":"1px","dataValue":"","desktopHeight":"26px","displayValue":"","emptyValue":"emptyString","height":"35px","margin":"1,0,0,0","maxChars":"100","padding":"1","placeHolder":"First Name   Last Name:","required":true,"styles":{},"width":"95%"}, {}],
								primaryPhoneEditor1: ["wm.Text", {"border":"0","caption":"PrimaryPhone","captionSize":"1px","dataValue":"","desktopHeight":"26px","displayValue":"","emptyValue":"emptyString","height":"35px","margin":"1,0,0,0","maxChars":"10","padding":"1","placeHolder":"Primary Phone (10 digit):","regExp":"^[0-9]{10}","required":true,"styles":{},"width":"95%"}, {}],
								panel8: ["wm.Panel", {"desktopHeight":"56px","enableTouchHeight":true,"height":"45px","horizontalAlign":"left","layoutKind":"left-to-right","mobileHeight":"45px","styles":{},"verticalAlign":"middle","width":"95%"}, {}, {
									pictureRegistrationChkBox: ["wm.Picture", {"aspect":"v","height":"45px","source":"resources/images/checkbox.jpg","width":"45px"}, {"onclick":"pictureRegistrationClick"}],
									pictureRegistrationChkBoxChecked: ["wm.Picture", {"aspect":"v","height":"45px","showing":false,"source":"resources/images/checkboxchecked.jpg","width":"45px"}, {"onclick":"pictureRegistrationClick"}],
									txtCopyright2: ["wm.Label", {"align":"left","caption":"I agree to terms and conditions **","height":"34px","padding":"4","singleLine":false,"styles":{},"width":"100%"}, {"onclick":"pictureRegistrationClick"}]
								}],
								buttonRegistration: ["wm.Button", {"border":"1","caption":"Register &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;   ","desktopHeight":"30px","height":"45px","imageIndex":43,"imageList":"app.silkIconList","mobileHeight":"45px","styles":{"fontWeight":"bold"},"width":"95%"}, {"onclick":"buttonRegistrationClick"}],
								spacer1: ["wm.Spacer", {"height":"11px","width":"96px"}, {}],
								buttonLogin: ["wm.Button", {"border":"1","caption":"Back to Login","desktopHeight":"30px","height":"45px","imageIndex":58,"imageList":"app.silkIconList","mobileHeight":"45px","styles":{"fontWeight":"bold"},"width":"95%"}, {"onclick":"layerLogin"}],
								labelCoyRight3: ["wm.Label", {"align":"center","caption":"Copyright @2014 H2M App.com","height":"26px","link":"http://h2mapp.com/products.html","padding":"4","styles":{"fontWeight":"normal","fontSize":"8px"},"width":"100%"}, {}],
								labelCoyRight8: ["wm.Label", {"align":"center","caption":"","display":"labelCoyRight7ReadOnlyNodeFormat","height":"34px","link":undefined,"padding":"4","styles":{"fontWeight":"normal","fontSize":"12px","fontStyle":"normal"},"width":"100%"}, {}]
							}]
						}]
					}]
				}]
			}]
		}]
	}]
}